<%@ page import="java.net.URLDecoder" %>
<%@page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="<%=request.getContextPath() %>"/>
<%--<meta http-equiv=“X-UA-Compatible” content=“chrome=1″ />--%>
<%
//    System.out.println(request.getContextPath()+"dsdssds");
%>
<html>
<head>
    <title>测站编码管理系统</title>
    <link href="${ctx}/quote/login.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/quote/amazeui.css" rel="stylesheet" type="text/css"/>
</head>
<body style="background-image: url(${ctx}/quote/background1.png); background-size:cover">

<div class="am-g" id="login-div">

    <form class="am-form" id="login-form" method="post" action="/login.action">

        <input type="hidden" name="act" id="act" value="login"/>
        <input type="hidden" name="ctx" id="ctx" value="${ctx}"/>

        <div class="am-form-group am-g" id="nameDiv">
            <label for="login-username" class="am-form-label am-text-middle">用户名</label>
            <div class="">
                <c:if test="${username != null}">
                    <input class="am-radius" type="text" id="login-username" name="username" placeholder="用户名" required
                           minlength="1" value="${username}">
                </c:if>
                <c:if test="${username == null}">
                    <input class="am-radius" type="text" id="login-username" name="username" placeholder="用户名" required
                           minlength="1">
                </c:if>
            </div>
        </div>

        <div class="am-form-group am-g am-form-icon" id="passwordDiv">
            <label for="login-password" class="am-form-label">密码</label>
            <div class="">
                <input class="am-radius" type="password" name="password" id="login-password" placeholder="登录密码" required
                       minlength="1">
            </div>
        </div>

        <c:if test="${erroInfo != null}">
            <div class="am-g">
                <div id="login-info-div" class="am-alert am-alert-danger">
                    <p class="am-text-middle am-text-center">${erroInfo}</p>
                </div>
            </div>
        </c:if>

        <div class="am-form-group am-g">
            <div class="">
                <%--<button type="reset" class="am-btn am-btn-primary am-radius am-fl">重 置</button>--%>
                <button type="submit" class="am-btn am-btn-primary am-radius am-fr">登 录</button>
            </div>
        </div>
    </form>

</div>

<script src="${ctx}/quote/jquery.min.js" type="text/javascript"></script>
<script src="${ctx}/quote/amazeui.js" type="text/javascript"></script>
<script src="${ctx}/jsps/qt/js/login.js"></script>


</body>
</html>